/**  
 * @Project: Dawn
 * @Title: Request.java
 * @Package dataobject.api
 * @Description: TODO
 * @author yanglei yanglei1@funshion.com
 * @date 2014年12月2日 下午3:30:40
 * @Copyright: 2014 funshion.com. All rights reserved.
 * @version V1.0  
*/
package dataobject.request;

import java.util.ArrayList;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

import dataobject.DataObject;

/**
 * @ClassName Request
 * @Description TODO
 * @author yanglei1 yanglei1@funshion.com
 * @date 2014年12月2日
 */

@Root(name="Request")
public class Request extends DataObject{

	@Attribute(name="ID", required=true)
	private String ID;
	
	@Attribute(name="Name", required=false)
	private String Name;
	
	@Attribute(name="Description", required=false)
	private String Description;
	
	@Element(name="Url", required=true)
	private String Url;
	
	@Element(name="Method", required=true)
	private String Method;
	
	@Element(name="Cookie", required=false)
	private String Cookie;
	
	@Element(name="UserAgent", required=false)
	private String UserAgent;
	
	@ElementList(name="Parameters", required=false)
	private ArrayList<Parameter> parameters;

	/**
	 * @return the id
	 */
	public String getId() {
		return ID;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.ID = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return Name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.Name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return Description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.Description = description;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return Url;
	}

	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		Url = url;
	}

	/**
	 * @return the method
	 */
	public String getMethod() {
		return Method;
	}

	/**
	 * @param method the method to set
	 */
	public void setMethod(String method) {
		Method = method;
	}

	/**
	 * @return the cookie
	 */
	public String getCookie() {
		return Cookie;
	}

	/**
	 * @param cookie the cookie to set
	 */
	public void setCookie(String cookie) {
		Cookie = cookie;
	}

	/**
	 * @return the userAgent
	 */
	public String getUserAgent() {
		return UserAgent;
	}

	/**
	 * @param userAgent the userAgent to set
	 */
	public void setUserAgent(String userAgent) {
		UserAgent = userAgent;
	}

	/**
	 * @return the parameterList
	 */
	public ArrayList<Parameter> getParameterList() {
		return parameters;
	}

	/**
	 * @param parameterList the parameterList to set
	 */
	public void setParameterList(ArrayList<Parameter> parameterList) {
		this.parameters = parameterList;
	}
}
